﻿using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using BoneSystem.Extensions.Annotations;
using BoneSystem.Extensions.Annotations.InputTypeAnnotations;
using BoneSystem.Extensions.Enum;

namespace BoneSystem.Business.Entity.ItemComercial
{
    [Grid("dataList")]
    public class ItemComercial : PropertiesBase
    {
        #region Informações gerais

        
        [Text(Required = true,
            RequiredErrorMessage = Constants.MessageRequiredError,
            MaxLength = Constants.MaxLengthDescriptions,
            MinLength = Constants.MinLengthDescriptions,
            Display = "Descrição",
            PlaceHolder = "Descrição do produto", 
            ColSpan = 2, InputLarge = InputLargeEnum.XLarge)]
        [GridColumn(DisplayName = "Descrição", Width = 300, Sortable = true,Filter = true)]
        [Required]
        [DataMember]
        public virtual string Descricao { get; set; }

        #endregion

        
    }
}
